import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException;
import domain.Student;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.collections.map.HashedMap;

import java.io.*;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class Example {
    private static  Pattern pattern = Pattern.compile("([0-9a-zA-Z]){5,18}");
    private   int a;
    public static void main(String[] args) throws Exception {
         Example e1 = new Example();
         Example e2 = new Example();
         e1.setA(33);
        System.out.println(e2.getA());
        System.out.println(SpecialCardValidate("320621"));
    }

    public static boolean SpecialCardValidate(@Nullable String card) {
        Matcher m = pattern.matcher(card);
        if (m.matches()){
            return true;
        } else {
            return false;
        }
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }
}

